:root {
  --border-radius-size: 6px;
  --scrollbar-size: 7px;
  --scrollbar-track-background-color: #f1f1f1;
  --scrollbar-thumb-background-color: #a8a8a8;
  --scrollbar-thumb-hover-background-color: #888;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

code {
  font-family: source-code-pro, Menlo, Monaco, Consolas, '微软雅黑', monospace;
}

::-webkit-scrollbar {
  width: var(--scrollbar-size);
  height: var(--scrollbar-size);
}
::-webkit-scrollbar-track {
  // box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  background: var(--scrollbar-track-background-color);
  border-radius: var(--scrollbar-size);
}
::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb-background-color);
  border-radius: var(--scrollbar-size);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--scrollbar-thumb-hover-background-color);
}

#root {
  .ant-pro-sider.ant-layout-sider.ant-pro-sider-fixed {
    top: 30px;
  }
  .ant-menu-item {
    margin-top: 0;
    margin-bottom: 0;
  }
  .ant-page-header-heading-title {
    font-size: 18px;
  }
  .ant-input {
    font-family: consolas, 微软雅黑;
  }
  .ant-list-sm .ant-list-item {
    padding: 4px 8px;
  }
  .apps {
    .ant-card-body {
      padding: 0 24px;
    }
  }
  .ant-pro-list .ant-list-grid {
    padding: 0;
  }
}

.App {
  max-height: 100vh;
  display: flex;
  flex-direction: column;

  .main {
    height: calc(100vh - 30px);
    border-right: 1px solid gainsboro;
    box-sizing: border-box;
  }
}

.titlebar {
  height: 30px;
  background: #1f1f1f;
  color: white;
  user-select: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  border-top-left-radius: var(--border-radius-size);
  border-top-right-radius: var(--border-radius-size);
  .left {
    text-align: left;
  }
  .right {
    display: flex;
    align-items: center;
  }
}
.titlebar-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 30px;
  height: 30px;
}
.titlebar-button:hover {
  background: #3b3b3b;
}
.titlebar-button:last-child:hover {
  background: #da3d3d;
  border-top-right-radius: var(--border-radius-size);
}
.titlebar-button img {
  filter: invert(100%);
}

.title {
  font-size: 18px;
  line-height: 1;
  padding: 3px 0;
  font-weight: 600;
}
.page.ant-pro-card {
  padding-left: 16px;
  height: calc(100vh - 30px);
  overflow: auto;
  border-bottom: 1px solid gainsboro;
}

.logging {
  margin-bottom: 0;
  code {
    display: block;
    border-bottom: 1px solid #f2f2f2;
    box-sizing: border-box;
  }
}

input::-webkit-calendar-picker-indicator {
  opacity: 0;
}

datalist {
  position: absolute;
  max-height: 20em;
  border: 0 none;
  overflow-x: hidden;
  overflow-y: auto;
}

datalist option {
  font-size: 0.8em;
  padding: 0.3em 1em;
  background-color: #ccc;
  cursor: pointer;
}

/* option active styles */
datalist option:hover,
datalist option:focus {
  color: #fff;
  background-color: #036;
  outline: 0 none;
}
